package com.paging.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BookAuthorMapper {
//    添加书籍和作者的关系
    void addBookAuthor(@Param("bookNumber") String bookNumber, @Param("authorId") String authorId);
//    根据作者id查询书籍id
    String[]  queryBookIdByAuthorId(@Param("authorId") String authorId);

//    根据书籍编号删除书籍和作者的关系
    void deleteBookAuthorByBookNumber(@Param("bookNumber") String bookNumber);

//    根据书籍编号查询作者id
    String queryAuthorIdByBookNumber(@Param("bookNumber") String bookNumber);

}
